package com.fmatos.amazingwallpapers.image.database.orm;

import com.j256.ormlite.field.DatabaseField;

/**
 * Represents a photo from an album
 */
public class Photo {

	public Photo() {
		// needed by ormlite
	}

	@DatabaseField //(index = true, foreign = true)// foreign key
	private String albumName;

	@DatabaseField (id= true)
	private String url;
	
	@DatabaseField
	private String filePath;
	
	@DatabaseField
	private String caption;
	
	@DatabaseField
	private String description;

	@DatabaseField
	private long date;
	
	@DatabaseField 
	private boolean isGif;

	@DatabaseField
	private boolean isCorrupt;
	
	public String getAlbumName() {
		return albumName;
	}

	public void setAlbumName(String albumName) {
		this.albumName = albumName;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public String getCaption() {
		return caption;
	}

	public void setCaption(String caption) {
		this.caption = caption;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public long getDate() {
		return date;
	}

	public void setDate(long date) {
		this.date = date;
	}

	public boolean isGif() {
		return isGif;
	}

	public void setGif(boolean isGif) {
		this.isGif = isGif;
	}

	public boolean isCorrupt() {
		return isCorrupt;
	}

	public void setCorrupt(boolean isCorrupt) {
		this.isCorrupt = isCorrupt;
	}

}